package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 回复表
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_reply")
public class ShopReply extends Model<ShopReply> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private Date ctime;
	private Date mtime;
	private Boolean status;
	@TableField("is_official")
	private Boolean isOfficial;
	private String content;
	@TableField("user_name")
	private String userName;
	@TableField("user_id")
	private Long userId;
	@TableField("reply_id")
	private Long replyId;
	@TableField("comment_id")
	private Long commentId;
	@TableField("reply_name")
	private String replyName;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public Boolean getOfficial() {
		return isOfficial;
	}

	public void setOfficial(Boolean isOfficial) {
		this.isOfficial = isOfficial;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getReplyId() {
		return replyId;
	}

	public void setReplyId(Long replyId) {
		this.replyId = replyId;
	}

	public Long getCommentId() {
		return commentId;
	}

	public void setCommentId(Long commentId) {
		this.commentId = commentId;
	}

	public String getReplyName() {
		return replyName;
	}

	public void setReplyName(String replyName) {
		this.replyName = replyName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopReply{" +
			"id=" + id +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", status=" + status +
			", isOfficial=" + isOfficial +
			", content=" + content +
			", userName=" + userName +
			", userId=" + userId +
			", replyId=" + replyId +
			", commentId=" + commentId +
			", replyName=" + replyName +
			"}";
	}
}
